// JavaScript Document

$(document).ready(function(){
	
	
	$.ajax({
  		type: "post",
 		url: "hmk/getWukuType_getWukuType.action",
  		success:function(data){
  			$.each(data.typeList,function(i,n){
  				$("<option value="+n.tpyeId+">"+n.tpyeName+"</option>").appendTo('#goodTypeID_top');
			});
  		}
	});
	
	
	$('#ADD_AIDGOODS_TOP').click(function(){
		$('#mainFrame',window.parent.document).attr('src','/ag/hmk/AidGoodsAdd.jsp');
	});

	//导航到物资管理	
	$('#wuzhiM').click(function(){
		$('#topFrame',window.parent.document).attr('src','/ag/hmk/wuzhiTop.jsp');
		$('#mainFrame',window.parent.document).attr('src','/ag/hmk/wuzhiMain.jsp');
	});
	
	$('#FIND_AGKU_ID').click(function(){
		$('#mainFrame',window.parent.document).attr('src','/ag/hmk/AidGoodsMain.jsp');
	
	});
	
});